Skip to content

feat(claude): add claude-fable-5-1 and bump Claude Code fingerprint to 2.1.251 - #5405

Open
gkinter wants to merge 1 commit into
router-for-me:devfrom
gkinter:feat/claude-fable-5-1
Open

feat(claude): add claude-fable-5-1 and bump Claude Code fingerprint to 2.1.251#5405
gkinter wants to merge 1 commit into
router-for-me:devfrom
gkinter:feat/claude-fable-5-1

Conversation

@gkinter

@gkinter gkinter commented Sep 2, 2026

Copy link
Copy Markdown

Anthropic's /v1/models now returns claude-fable-5-1 for subscription (OAuth) accounts, but the proxy rejects it with unknown provider for model claude-fable-5-1 because it is missing from the embedded registry in internal/registry/models/models.json.

Adding the model alone is not sufficient. Anthropic gates it on the advertised client version and returns:

Claude Code 2.1.220 does not support this model; version 2.1.251 or newer is
required. Run 'claude update', or update the Claude desktop app, then try again.

so this also bumps defaultClaudeFingerprintUserAgent in
internal/runtime/executor/helps/claude_device_profile.go from 2.1.220 to 2.1.251.

Verification

Built from this branch and run against a live Claude subscription account:

  • before: POST /v1/chat/completions with claude-fable-5-1 -> 400 unknown provider for model
  • after adding the registry entry only -> 400 Claude Code 2.1.220 does not support this model
  • after both changes -> 200, model echoes back as claude-fable-5-1

/v1/models goes from 38 to 39 entries. Regression-checked claude-fable-5,
claude-opus-5 and claude-sonnet-5 — all still 200.

Notes

The registry entry mirrors claude-fable-5: 1M context, 128k max completion,
thinking levels low..max, text+image in / text out.

🤖 Generated with Claude Code

…o 2.1.251

Anthropic's /v1/models now returns `claude-fable-5-1` for subscription
(OAuth) accounts, but the proxy rejects it with
"unknown provider for model claude-fable-5-1" because it is missing from
the embedded registry.

Adding the model alone is not sufficient: Anthropic gates it on the
advertised client version and returns

  "Claude Code 2.1.220 does not support this model; version 2.1.251 or
   newer is required. Run 'claude update' ..."

so `defaultClaudeFingerprintUserAgent` is bumped from 2.1.220 to 2.1.251.

Verified against a live subscription account: with both changes,
`claude-fable-5-1` appears in /v1/models and chat completions succeed.
Existing models (claude-fable-5, claude-opus-5, claude-sonnet-5) are
unaffected.

The registry entry mirrors claude-fable-5 (1M context, 128k max
completion, thinking levels low..max, text+image in / text out).
@github-actions

github-actions Bot commented Sep 2, 2026

Copy link
Copy Markdown

This pull request targeted main.

The base branch has been automatically changed to dev.

@github-actions
github-actions Bot changed the base branch from main to dev September 2, 2026 01:10
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-02T01:13:01.286128Z 43849b1 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 43849b1120

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


const (
defaultClaudeFingerprintUserAgent = "claude-cli/2.1.220 (external, cli)"
defaultClaudeFingerprintUserAgent = "claude-cli/2.1.251 (external, cli)"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Update tests for the 2.1.251 fingerprint

Changing this baseline alters both the emitted User-Agent and the billing header version returned by DefaultClaudeVersion, but the committed executor tests still require claude-cli/2.1.220 and cc_version=2.1.220 (notably TestClaudeExecutor_NonClaudeRequestUsesClaudeCode220CLIFingerprint and TestClaudeExecutor_ConfirmedClaudeCodeRequestPreservesInteractiveIdentity). Consequently, the required go test ./... suite will fail once dependencies are available; update the affected fixtures and assertions alongside the baseline.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant